/**
 * Alipay.com Inc.
 * Copyright (c) 2004-2012 All Rights Reserved.
 */
package com.losenote.enums;

/**
 * 操作返回码枚举
 * 
 * @author jingyu.dan
 * @version $Id: AcResultCodeEnum.java, v 0.1 2012-11-7 下午8:23:24 jingyu.dan Exp $
 */
public enum LnResultCodeEnum {

    /** 操作成功 */
    SUCCESS("SUCCESS", "操作成功"),

    /** 系统错误 */
    SYSTEM_FAILURE("SYSTEM_FAILURE", "系统错误"),

    /** 参数为空 */
    NULL_ARGUMENT("NULL_ARGUMENT", "参数为空"),

    /** 参数不正确 */
    ILLEGAL_ARGUMENT("ILLEGAL_ARGUMENT", "参数不正确"),

    /** 业务异常 */
    BIZ_ERROR("BIZ_ERROR", "业务异常"),

    /** 逻辑错误 */
    LOGIC_ERROR("LOGIC_ERROR", "逻辑错误"),

    /** 外部接口调用失败 */
    DEPEND_FAILURE("DEPEND_FAILURE", "依赖外部接口失败");

    /** 枚举值 */
    private String code;

    /** 枚举信息 */
    private String description;

    /**
     * 构造函数
     * 
     * @param code                  枚举值
     * @param description           枚举信息
     */
    private LnResultCodeEnum(String code, String description) {
        this.code = code;
        this.description = description;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

}
